package cn.stylefeng.guns.dao.entity;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import net.bytebuddy.implementation.bind.annotation.SuperMethod;

/**
 * <p>
 *
 * </p>
 *
 * @author quspacedraon
 * @since 2024-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("supplier")
@ApiModel(value = "Supplier对象", description = "")
public class Supplier extends BusinessBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "supplier_id", type = IdType.ASSIGN_ID)
    private String supplierId;

    @ApiModelProperty(value = "供应商code")
    @TableField("supplier_code")
    private String supplierCode;

    @ApiModelProperty(value = "供应商名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "供应商地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "是否省内 1 省内 0 省外")
    @TableField("in_province")
    private Integer inProvince;

    @ApiModelProperty(value = "年返利规则")
    @TableField("rule")
    private String rule;

    @ApiModelProperty(value = "删除标记：Y-已删除，N-未删除")
    @TableField(
            value = "del_flag",
            fill = FieldFill.INSERT
    )
    @ChineseDescription("删除标记（Y-已删除，N-未删除）")
    @TableLogic(value = "N", delval = "Y")
    private String delFlag;
}
